body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: auto;
}

/* 主题相关样式 */
[data-theme="dark"] body {
  background-color: #000;
}

[data-theme="light"] body {
  background-color: #f0f2f5;
}

#root {
  height: 100vh;
  width: 100vw;
  overflow: auto;
}

/* 动画类定义 */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* 动画类 */
.animate-fade-in {
  animation: fade-in 0.5s ease-out;
}

.animate-slide-up {
  animation: slide-up 0.3s ease-out;
}

.animate-fade-in-up {
  animation: fade-in-up 0.3s ease-out forwards;
  opacity: 0;
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 自定义主题颜色变量 */
:root {
  /* 深色主题颜色 */
  --dark-layout: #000;
  --dark-content: #1a1a1a;
  --dark-card: rgba(30, 30, 30, 0.8);
  --dark-text-primary: rgba(255, 255, 255, 0.8);
  --dark-text-secondary: rgba(255, 255, 255, 0.6);
  --dark-text-tertiary: rgba(255, 255, 255, 0.4);
  --dark-border: rgba(255, 255, 255, 0.1);
  
  /* 浅色主题颜色 */
  --light-layout: #f0f2f5;
  --light-content: #ffffff;
  --light-card: #ffffff;
  --light-text-primary: rgba(0, 0, 0, 0.85);
  --light-text-secondary: rgba(0, 0, 0, 0.65);
  --light-text-tertiary: rgba(0, 0, 0, 0.45);
  --light-border: rgba(0, 0, 0, 0.08);
  
  /* 品牌色 */
  --primary: #61dca3;
  --primary-light: #1890ff;
  
  /* 阴影效果 */
  --dark-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --light-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --light-hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}